package com.allqj.sfx.ddd.member.infrastructure.dao;

import com.allqj.sfx.ddd.member.infrastructure.po.FlowTypeDO;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import java.util.List;

/**
 * @author sjw
 * @className FlowTypeDAO
 * @date 2022/7/21 9:32
 * @description: 数据访问层
 */
public interface FlowTypeDAO extends JpaRepository<FlowTypeDO, Integer>, JpaSpecificationExecutor<FlowTypeDO> {
    List<FlowTypeDO> findAllByModuleIdAndIsdeleteFalse(Integer moduleId);

    FlowTypeDO findByCodeAndIsdeleteFalse(Integer code);
}
